<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:s="http://jboss.org/schema/seam/taglib"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html">

  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>seamBay</title>
    <link href="style/home.css" rel="stylesheet" type="text/css"/>
    <link href="style/common.css" rel="stylesheet" type="text/css"/>
    <link href="style/sell.css" rel="stylesheet" type="text/css"/>
  </head>

  <body>
    <div class="container">
      <ui:include src="header.xhtml"/>  
      
      <div class="banner"></div>
     
      <div class="content">
        <div class="sellHeader">
          Set auction duration and starting price
        </div>

        <div class="sellSubHeader">
          Set the running time for your auction, and the starting price
        </div>

        <h:form id="sellForm">
        
          <s:validateAll>
            <div class="formRow">
              <h:outputLabel for="duration">How many days would you like your auction to run?</h:outputLabel>
              <h:inputText id="duration" value="#{auctionAction.duration}" required="true"/>
              <span> days</span>
              <div class="validationError"><h:message for="duration"/></div>
            </div>
            
            <div class="formRow">
              <h:outputLabel for="price">Please enter the starting price for your auction $</h:outputLabel>
              <h:inputText id="price" value="#{auctionAction.auction.startingPrice}" required="true">
                <f:convertNumber minFractionDigits="2" maxFractionDigits="2" minIntegerDigits="1"/>
              </h:inputText>
              <div class="validationError"><h:message for="price"/></div>
            </div>
          </s:validateAll>

          <div class="navBar">
            <div class="navBarLeft">
              <h:commandButton value="&lt; Previous" action="previous"/>
            </div>
            
            <div class="navBarRight">
              <h:commandButton id="next" value="Next >" action="next"/>
            </div>              
            
            <br class="clear"/>                          
          </div>

          <hr class="thinLine"/>

          <hr class="baseLine"/>

        </h:form>

      </div>

    </div>
       
  </body>
</html>
